package com.zan.dao;

import com.zan.entity.ShoppingCart;
import com.zan.entity.ShoppingCartVo;
import com.zan.general.GeneralDao;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ShoppingCartMapper extends GeneralDao<ShoppingCart> {

    public List<ShoppingCartVo> selectShopCartByUserId(int userId);

    public int updateCartNumByCartId(@Param("cartId") int cartId, @Param("cartNum") int cartNum);

    public List<ShoppingCartVo> selectShopCartByCids(List<Integer> cids);

}